#include "SocketException.h"

SocketException::SocketException(std::string message, int errCode) : m_message(message), m_errNb(errCode)
{
}

SocketException::~SocketException() throw()
{
    
}

const char* SocketException::what() const throw()
{
    char errMsg[255];
    sprintf(errMsg, "%s Error %d", m_message.c_str(), m_errNb);
    std::string message = errMsg;
    return message.c_str();
}
